import {t, api, message, bs} from "@/service/index.js"


export default {
    url: {
        modelEdit: "/chat/modelEdit",
        modeList: "/chat/modeList",
        modeDel: "/chat/modeDel",
        modeFileList: "/chat/modeFileList",
        modeFileDel: "/chat/modeFileDel",
        modeContentList: "/chat/modeContentList",
        modeContentDel: "/chat/modeContentDel",
        question: "/chat/question",
        modeContentEdit: "/chat/modeContentEdit",
        modeContentInfo: "/chat/modeContentInfo",
    },
    modelEdit(data) {
        return api.post(this.url.modelEdit, data)
    },
    modeList(data) {
        return api.post(this.url.modeList, data)
    },
    modeDel(data) {
        return api.post(this.url.modeDel, data)
    },
    modeFileList(data) {
        return api.post(this.url.modeFileList, data)
    },
    modeFileDel(data) {
        return api.post(this.url.modeFileDel, data)
    },
    modeContentList(data) {
        return api.post(this.url.modeContentList, data)
    },
    modeContentDel(data) {
        return api.post(this.url.modeContentDel, data)
    },
    modeContentEdit(data){
        return api.post(this.url.modeContentEdit, data)
    },
    modeContentInfo(data){
        return api.post(this.url.modeContentInfo, data)
    },
    question(data,onData,onEnd){
        return api.stream(this.url.question, data,onData,onEnd)
    }
}